package lab02.test09;

/**
 * Created by JAVA on 2017/10/21.
 */
public class Student {
    //属性有“学号”、“班号”、“姓名”、“性别”、“年龄”，
    // 方法有“获得学号”、“获得班号”、“获得性别”、“获得姓名”、“获得年龄”、“获得年龄”。
    String id;
    String classid;
    String name;
    String sex;
    int age;
     Student (){}
     Student(String id, String classid,String name,String sex,int age){
         this.age=age;
         this.id=id;
         this.classid=classid;
         this.name=name;
         this.sex=sex;
     }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getClassId() {
        return getClassId();
    }

    public void setClassId(String classId) {
        this.classid = classid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return  "学号："+id+"\n"+"班号："+classid+"\n"+"姓名："+ name+"\n"+"性别："+sex+"\n"+"年龄："+ age;
    }


}
